package com.millstein.baier.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.millstein.baier.model.base.BaseEntity;
import com.millstein.baier.model.dto.QuestionRecordDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@TableName("W_QuestionRecord")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionRecord extends BaseEntity {
    private String typename;
    private Integer errid;
    private String sn;
    private String remark;
    private String pictureurl;

    public QuestionRecord(QuestionRecordDto dto) {
        BeanUtils.copyProperties(dto, this);
    }
}
